*======================================================
*    Mod: Show if user is online, online recently or offline on user profile
*    Author:   Bones
*    URL:      http://www.bikers-n-outlaws.com
*    E-mail:   webmaster@bikers-n-outlaws.com
*    Support:  No support, get bent!
*======================================================
*    Coded for the
*    PHP-Fusion 7 Content Management System
=======================================================

DESCRIPTION
-----------
This mod will show if user is online, online recently or offline on user profile.

INSTALLATION
------------
1. Open profile.php located in the root directory.

2. Find: (around line 52)
	echo "<td width='1%' class='tbl1' style='white-space:nowrap'></td>\n";


3. Replace with this code and save.

	echo "<td width='1%' class='tbl1' style='white-space:nowrap'>\n";
		echo "<span style='float:left;'>";
				$lastseen = time() - $user_data['user_lastvisit'];
		if ($lastseen < 60) {
			$lastseen = "<span style='color:#00FF00;font-weight:bold;'>Online</span>";
		} elseif ($lastseen < 300)  {
			$lastseen = "<span style='color:#FFFF00;font-weight:bold;'>Recently online</span>";
		} else {
			$lastseen = "<span style='color:#ff0000;font-weight:bold;'>Offline</span>";
		}
	echo "".$lastseen."</span>\n";
	echo"</td>\n";


4. That's it. Load to your server and write a new private message.
Go ahead and test it by viewing some profiles including yours.
